package service;

public class SpringB {
    private String desc;
    private SpringA springA;

    public void sayB(){
        System.out.println("我是SpringB类");
        this.getSpringA().say();
    }
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public SpringA getSpringA() {
        return springA;
    }

    public void setSpringA(SpringA springA) {
        this.springA = springA;
    }
}
